// 菜单数据模型
export interface Menu {
  id: number;
  menuCode: string; // 菜单编码
  menuName: string; // 菜单名称
  displayName: string; // 菜单显示名称
  menuType: number; // 菜单类型：1-目录 2-菜单 3-按钮
  parentId: number | null;
  level: number;
  sort: number;
  path?: string; // 路由路径
  component?: string; // 组件路径
  icon?: string; // 图标
  status: number; // 0-禁用 1-启用
  remark?: string;
  createTime: string;
  updateTime: string;
  children?: Menu[];
}

// 菜单查询参数
export interface MenuQuery {
  curPage: number;
  pageSize: number;
  total: number;
  pages: number;
  param: {
    menuName?: string;
    menuCode?: string;
    menuType?: number;
    status?: number;
  };
}

// 菜单表单数据
export interface MenuForm {
  id?: number;
  menuCode: string;
  menuName: string;
  displayName: string;
  menuType: number;
  parentId: number | null;
  level: number;
  sort: number;
  path?: string;
  component?: string;
  icon?: string;
  status: number;
  remark?: string;
}

// 菜单类型选项
export const MENU_TYPE_OPTIONS = [
  { label: '目录', value: 1 },
  { label: '菜单', value: 2 },
  { label: '按钮', value: 3 }
];

// 菜单状态选项
export const MENU_STATUS_OPTIONS = [
  { label: '禁用', value: 0 },
  { label: '启用', value: 1 }
];

